//用于查看测试需求的审核记录的窗体
var testRequirementCheckLogWin = Ext.create('Ext.window.Window', {
	height: 400,
    width: 800,
    layout: 'fit',
    items: [testRequirementCheckLogGrid],
    closeAction: 'hide', // 防止窗体被销毁
    titlePosition: 2,//设置工具栏的按钮在标题的左边
    tools: [{
        type: 'prev',
        tooltip: '返回上一页',
        handler: function () {
            testRequirementCheckLogWin.removeAll(false);
            testRequirementCheckLogWin.add(testRequirementCheckLogGrid);
            testRequirementCheckLogWin.setTitle('查看审核记录');
        }
    }]
});

//用于测试需求转换成测试计划是提供主题、优先级选择的窗体
var testRequirementTransformToDesignWin=Ext.create('Ext.window.Window', {
	title:'转换测试计划',
	height: 250,
    width: 400,
    layout: 'fit',
    items: [testRequirementTransformToDesignForm],
    closeAction: 'hide', // 防止窗体被销毁
    buttons:[{
    	text:'确认',
    	listeners:[{
    		click:function(){
    			var item = testRequirementLeftTree.getSelectionModel().getSelected();// 得到被选择的行的数组.
    			var id=item.items[0].data.id;
    			var subject=testRequirementTransformToDesignForm.down('#testReqToDesignTreePicker').getValue();
    			var name=testRequirementTransformToDesignForm.down('#testReqToDesignTitle').getValue();
    			var isIncludeChildren=testRequirementTransformToDesignForm.down('#testReqToDesignisIsIncludeChildren').getValue().isIncludeStep;
    			var priority=testRequirementTransformToDesignForm.down('#testReqToDesignPriority').getValue();
    			testReqTransformToDesign(id,name,isIncludeChildren,subject,priority);
    		}
    	}]
    }]
});

//用于查看测试系统详细信息的窗口
var testRequirementSystemWin=Ext.create('Ext.window.Window', {
	title:'测试系统详情',
	height: 600,
    width: 800,
    layout: 'fit',
    items: [testSystemTabPanel],
    closeAction: 'hide'// 防止窗体被销毁
});